package com.thotran.iblacklist.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

import com.actionbarsherlock.app.SherlockActivity;
import com.thotran.iblacklist.R;

public class MainActivity extends SherlockActivity implements OnClickListener {

	private ImageView imgBlacklist;
	private ImageView imgWhitelist;
	private ImageView imgHistory;
	private ImageView imgGeneral;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		imgBlacklist = (ImageView) findViewById(R.id.blacklist);
		imgBlacklist.setOnClickListener(this);
		imgWhitelist = (ImageView) findViewById(R.id.whitelist);
		imgWhitelist.setOnClickListener(this);
		imgHistory = (ImageView) findViewById(R.id.history);
		imgHistory.setOnClickListener(this);
		imgGeneral = (ImageView) findViewById(R.id.general);
		imgGeneral.setOnClickListener(this);

	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		switch (arg0.getId()) {
		case R.id.blacklist:
			Intent i = new Intent(this, BlacklistActivity.class);
			startActivity(i);
			break;

		default:
			break;
		}
	}

}
